package cn.windy.samary.module.admin.service;

import cn.windy.samary.module.admin.common.Tree;
import cn.windy.samary.module.admin.entity.Permission;
import cn.windy.samary.module.abstracts.service.IAbstractService;

/**
 * 权限
 *
 * @author zyl
 * @date 2018/5/21 13:32
 */
public interface IPermissionService extends IAbstractService<Permission> {

    Tree<Permission> getTree();

    //根据角色查询权限
    Tree<Permission> getTree(String roleId);

    int delete(String id);
}
